<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="layout" content="main"/>
    <g:javascript src="app/alterarSenha.js" />
  </head>
  <body>
    <h1>Alterar Senha</h1><hr/>
    <p>
      <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
      </g:if>
      <g:if test="${flash.error}">
        <div class="errors">
          <ul><li>${flash.error}</li></ul>
         </div>
      </g:if>
      <g:hasErrors bean="${usuario}">
      <div class="errors">
          <g:renderErrors bean="${usuario}" as="list" />
      </div>
      </g:hasErrors>
      <div id="validateErrors"class="errors" style="display:none;">
          <ul></ul>
      </div>
      <br/>
      <g:form name="formAlterarSenha" action="alterarSenhaAtualiza" >
        Senha Atual: <br/>
        <g:passwordField name="senhaAtual" /><br/><br/>
        Nova Senha: <br/>
        <g:passwordField name="senha" /><br/><br/>
        Confirma Nova Senha: <br/>
        <g:passwordField name="confirmaSenha" /><br/><br/>
        <g:submitButton name="atualizar" value="Alterar" />
        <g:link action="index"><input class="botao" id="voltar" type="button" value="Voltar" /></g:link>
      </g:form>
    </p>
  </body>
</html>
